package com.itqf.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Answer {
    private  String answeruserid;

    private Integer ansrequestionid;

    private String answertitle;

    private String thequestionanswer;

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date answertime;

    private Integer ansPageview;

    private Integer reqCommentnum;

    private Integer reqLikenum;

    private User user;

    private Requestionanswer requestionanswer;

    public Requestionanswer getRequestionanswer() {
        return requestionanswer;
    }

    public void setRequestionanswer(Requestionanswer requestionanswer) {
        this.requestionanswer = requestionanswer;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getAnsweruserid() {
        return answeruserid;
    }

    public void setAnsweruserid(String answeruserid) {
        this.answeruserid = answeruserid;
    }

    public Integer ansrequestionid() {
        return ansrequestionid;
    }

    public void ansrequestionid(Integer requestionid) {
        this.ansrequestionid = requestionid;
    }

    public String getAnswertitle() {
        return answertitle;
    }

    public void setAnswertitle(String answertitle) {
        this.answertitle = answertitle == null ? null : answertitle.trim();
    }

    public Integer getAnsrequestionid() {
        return ansrequestionid;
    }

    public void setAnsrequestionid(Integer ansrequestionid) {
        this.ansrequestionid = ansrequestionid;
    }

    public String getThequestionanswer() {
        return thequestionanswer;
    }

    public void setThequestionanswer(String thequestionanswer) {
        this.thequestionanswer = thequestionanswer;
    }

    public Date getAnswertime() {
        return answertime;
    }

    public void setAnswertime(Date answertime) {
        this.answertime = answertime;
    }

    public Integer getAnsPageview() {
        return ansPageview;
    }

    public void setAnsPageview(Integer ansPageview) {
        this.ansPageview = ansPageview;
    }

    public Integer getReqCommentnum() {
        return reqCommentnum;
    }

    public void setReqCommentnum(Integer reqCommentnum) {
        this.reqCommentnum = reqCommentnum;
    }

    public Integer getReqLikenum() {
        return reqLikenum;
    }

    public void setReqLikenum(Integer reqLikenum) {
        this.reqLikenum = reqLikenum;
    }
}